#include<stdio.h>
int main()
{
    long int a,b,c;
    printf("Please enter a option fraction (a/b):");
    scanf("%1d/%1d",&a,&b);
    printf("It can decomposed to :");
    while (1){
        if(b%a)
        c=b/a+1;
        else {
            c=b/a;a=1;


        }
        if(a==1){
            printf("1/%1d\n",c);
            break;
        }
        else
        printf("1/%1d+",c);
        a=a*c-b;
        b=b*c;
        if(a==3)
        {
            printf("1/%1d+1/%1d\n",b/2,b);break;
        }
    }
}